module spsr_wrapper(
  input clk,
  input [4:0] mode,
  input [38:0] write_in_bundle,
  output [31:0] q
);

wire        we;
wire        wa_exc;
wire [ 4:0] wa_mode_exc;
wire [31:0] d;

assign {we, wa_exc, wa_mode_exc, d} = write_in_bundle;

spsr u_spsr(
  .i_clk(clk),
  .i_mode(mode),
  .i_we(we),
  .i_wa_mode_exc(wa_mode_exc),
  .i_wa_exc(wa_exc),
  .i_d(d),
  .o_q(q)
);

endmodule
